export const requestIdMap = (x, index) => ({ ...x, id: `request${index}` })
export const responseIdMap = (x, index) => ({ ...x, id: `response${index}` })
export const returnDescId = () => window.location.hash?.split('id=')?.[1]
export const returnMenuList = (descId) => [{ name: '我的API' }, { name: `${descId ? '编辑' : '新建'}API` }]
